package com.ruoyi.fuw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fuw.mapper.FuwOrderMapper;
import com.ruoyi.fuw.domain.FuwOrder;
import com.ruoyi.fuw.service.IFuwOrderService;

/**
 * 订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-09
 */
@Service
public class FuwOrderServiceImpl implements IFuwOrderService 
{
    @Autowired
    private FuwOrderMapper fuwOrderMapper;

    /**
     * 查询订单信息
     * 
     * @param orderId 订单信息主键
     * @return 订单信息
     */
    @Override
    public FuwOrder selectFuwOrderByOrderId(String orderId)
    {
        return fuwOrderMapper.selectFuwOrderByOrderId(orderId);
    }

    /**
     * 查询订单信息列表
     * 
     * @param fuwOrder 订单信息
     * @return 订单信息
     */
    @Override
    public List<FuwOrder> selectFuwOrderList(FuwOrder fuwOrder)
    {
        return fuwOrderMapper.selectFuwOrderList(fuwOrder);
    }

    /**
     * 新增订单信息
     * 
     * @param fuwOrder 订单信息
     * @return 结果
     */
    @Override
    public int insertFuwOrder(FuwOrder fuwOrder)
    {
        return fuwOrderMapper.insertFuwOrder(fuwOrder);
    }

    /**
     * 修改订单信息
     * 
     * @param fuwOrder 订单信息
     * @return 结果
     */
    @Override
    public int updateFuwOrder(FuwOrder fuwOrder)
    {
        return fuwOrderMapper.updateFuwOrder(fuwOrder);
    }

    /**
     * 批量删除订单信息
     * 
     * @param orderIds 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwOrderByOrderIds(String[] orderIds)
    {
        return fuwOrderMapper.deleteFuwOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单信息信息
     * 
     * @param orderId 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwOrderByOrderId(String orderId)
    {
        return fuwOrderMapper.deleteFuwOrderByOrderId(orderId);
    }
}
